package com.allwees.support.payment.oceanpay.client;

import com.allwees.support.payment.oceanpay.dto.LogisticsUploadResult;
import com.allwees.support.payment.oceanpay.dto.RefundApplyResult;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

import java.util.Map;

/**
 * @author Daniel
 * @version 1.0.0
 * @since 2020/12/5 20:55
 */
interface OceanpayApi {

    /**
     * 上传物流
     *
     * @param params
     * @return
     */
    @POST("uploadTrackingNo")
    @FormUrlEncoded
    Call<LogisticsUploadResult> uploadTrackingNo(@FieldMap Map<String, Object> params);

    /**
     * 退款申请
     *
     * @param params
     * @return
     */
    @POST("applyRefund")
    @FormUrlEncoded
    Call<RefundApplyResult> applyRefund(@FieldMap Map<String, Object> params);
}
